// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 2011-10-11 11:16:32
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   Constants

package com.chinasoft.mall.framework;

import java.util.HashMap;

import android.content.Context;

import com.chinasoft.mall.model.BaseBean;
import com.chinasoft.mall.util.SystemSetting;

/**
 * 请求类型
 * 
 * @author Administrator
 */
public class Config {
	public static String BASE_URL = "http://m.hao24.cn/mobile/";

	// 获取请求头url
	public static final String GET_URL = "http://113.106.90.199:8888/androidhost.txt";
	// 获取商品分类
	public static final String GET_GOODSCLASS = "get_goodsClass.php";
	// 将所属分类的商品全部显示出来
	public static final String GET_GOODSBYCLASS = "get_goodsByClass.php";
	//员工商城商品展示
	public static final String GET_GOODSBYCLASSID = "get_employeeGoodsByClassId.php";
	//员工商城根据topicid 获得商品
	public static final String GET_GOODSBYTPID = "get_employeeGoodsByTpId.php";
	// 根据商品ID获取商品图片
	public static final String GET_GOODSIMG = "get_goodsImg.php";
	// 获取当天的节目单
	public static final String GET_EPG = "get_epg.php";
	// 获取前一天的节目单
	public static final String GET_EPG_PRE = "get_epg.php?day=pre";
	// 获取后一天的节目单
	public static final String GET_EPG_NEXT = "get_epg.php?day=next";
	// 根据商品ID获取缩略图
	public static final String GET_EPGIMGBYGOODSID = "get_epgImgByGoodsId.php";
	// 根据商品ID获取商品详细信息
	public static final String GET_GOODSBYID = "get_goodsById.php";
	// 根据商品名称或者上架时间，搜索商品。
	public static final String SEACH_GOODS = "seach_goods.php";
	// 从表RECHN中读取，默认按发布日期排序。
	public static final String GET_RECHN = "get_rechn.php";
	// 根据MODEL_ID获取MODEL详细信息
	public static final String GET_MODEL = "get_model.php";
	// 根据MODEL_ID获取MODEL列表信息
	public static final String GET_MODELLIST = "get_modellist.php";
	// 从表model_weibo中读取数据。
	public static final String GET_MODELWEIBO = "get_modelweibo.php";
	// 通过ID，从表GOODS_GRP中读取数据
	public static final String GET_GOODSGRPBYID = "get_goodsGrpById.php";
	// 通过ID取表GOOD_GRP_IMG的内容
	public static final String GET_GOODSGRPIMGBYID = "get_goodsGrpImgById.php";
	// 从表GOODS_GRP中，将所有团购商品列出来
	public static final String GET_GOODSGRP = "get_goodsgrp.php";
	// 搜索热词请求
	public static final String GET_RECI = "get_reci.php";
	// 获取活动列表
	
	public static final String GET_GAME = "http://m.hao24.cn:8080/mobile/joinAction.do?method=getGame&type=1&imei="
			+ SystemSetting.IMES;
	//摇摇乐推送消息
	public static final String GET_MESSAGE = "http://m.hao24.cn:8080/mobile/joinAction.do?method=getGame&imei="
			+ SystemSetting.IMES;
	// 参加活动
	public static final String INSERT = "http://m.hao24.cn:8080/mobile/joinAction.do?method=insert&imei="
			+ SystemSetting.IMES;
	// 更新app
	public static final String UPDATE = "joinAction.do?method=getVersionUrl&versionId="
			+ SystemSetting.versionId;
	// 获得启动图片
	public static final String STARTIMG = "get_startImg.php";
	
	//登陆验证
	public static final String LOGIN_CHECK = "http://m.hao24.cn:8080/hshopping/login!iphoneLogin.action";
	
	//推送消息
	public static final String PUSH_MESSAGE = "http://m.hao24.cn:8080/hshopping/push!pushMsg.action";
	
	//员工商城商品列表
	public static final String EMPLYEE_GOODS_CLASS = "http://m.hao24.cn/mobile/get_employeeGoodsClass.php";

	//员工商城topic
	public static final String EMPLOYEE_GOODS_TOPIC = "http://m.hao24.cn/mobile/get_topicInfo.php";
	
	// 请求事务所对应的返回bean
	public static HashMap<String, String> KVCLAZZ = new HashMap<String, String>();
	static {
		KVCLAZZ.put(GET_GOODSCLASS,
				"com.chinasoft.mall.model.response.GoodsClassBean");
		KVCLAZZ.put(GET_EPG, "com.chinasoft.mall.model.response.EpgBean");
		KVCLAZZ.put(GET_EPG_PRE, "com.chinasoft.mall.model.response.EpgBean");
		KVCLAZZ.put(GET_EPG_NEXT, "com.chinasoft.mall.model.response.EpgBean");
		KVCLAZZ.put(GET_GOODSBYCLASS,
				"com.chinasoft.mall.model.response.GoodsByClassBean");
		KVCLAZZ.put(GET_GOODSBYID,
				"com.chinasoft.mall.model.response.GoodsByClassBean");
		KVCLAZZ.put(GET_GOODSGRPIMGBYID,
				"com.chinasoft.mall.model.response.GetGoodGrpImgByIdBean");
		KVCLAZZ.put(GET_GOODSGRP,
				"com.chinasoft.mall.model.response.GoodsGrpBean");
		KVCLAZZ.put(GET_GOODSIMG,
				"com.chinasoft.mall.model.response.GoodsImgBean");
		KVCLAZZ.put(GET_MODELWEIBO,
				"com.chinasoft.mall.model.response.ModelWeiboBean");
		KVCLAZZ.put(GET_RECHN, "com.chinasoft.mall.model.response.RechnBean");
		KVCLAZZ.put(SEACH_GOODS,
				"com.chinasoft.mall.model.response.SearchGoodsBean");
		KVCLAZZ.put(GET_MODELLIST,
				"com.chinasoft.mall.model.response.ModellistBean");
		KVCLAZZ.put(GET_RECI, "com.chinasoft.mall.model.response.ReciBean");
		KVCLAZZ.put(GET_GAME, "com.chinasoft.mall.model.response.GetGameBean");
		KVCLAZZ.put(INSERT, "com.chinasoft.mall.model.response.InsertBean");
		KVCLAZZ.put(UPDATE, "com.chinasoft.mall.model.response.UpdateBean");
		KVCLAZZ.put(STARTIMG,
				"com.chinasoft.mall.model.response.GetStartImgBean");
		KVCLAZZ.put(LOGIN_CHECK, "com.chinasoft.mall.model.response.LoginCheckBean");
		KVCLAZZ.put(EMPLYEE_GOODS_CLASS, "com.chinasoft.mall.model.response.GoodsByClassEmployeeBean");
		KVCLAZZ.put(EMPLOYEE_GOODS_TOPIC, "com.chinasoft.mall.model.response.TopicBean");
		KVCLAZZ.put(GET_GOODSBYCLASSID, "com.chinasoft.mall.model.response.EmployeeGoodsByClass");
		KVCLAZZ.put(GET_GOODSBYTPID, "com.chinasoft.mall.model.response.TopicGoodsByTp");
		KVCLAZZ.put(PUSH_MESSAGE, "com.chinasoft.mall.model.response.PushMessageBean");
		
	}

	// private static HashMap<Integer, Integer> STATUS_MESSAGE = new
	// HashMap<Integer, Integer>(
	// 10);
	// static {
	// STATUS_MESSAGE.put(-100, R.string.system_null);
	// STATUS_MESSAGE.put(-1, R.string.system_initerror);
	// STATUS_MESSAGE.put(0, R.string.system_ok);
	// STATUS_MESSAGE.put(1, R.string.system_usererror);
	// STATUS_MESSAGE.put(2, R.string.system_hasusererror);
	// STATUS_MESSAGE.put(3, R.string.system_noresult);
	// STATUS_MESSAGE.put(4, R.string.error4);
	// STATUS_MESSAGE.put(1001, R.string.error1001);
	// STATUS_MESSAGE.put(1002, R.string.error1002);
	// STATUS_MESSAGE.put(1003, R.string.error1003);
	// }
	/**
	 * 公用传递标识
	 */
	public static final String INTENT_OBJ = "com.chinasoft.mall.Object";
	public static final String INTENT_TRACK = "com.chinasoft.mall.Track";

	/**
	 * 校验状态码
	 * 
	 * @param mycontext
	 * @param baseRes
	 *            请求bean
	 * @return true 成功 false 失败
	 */
	public static boolean VerfityStatus(Context mycontext, BaseBean baseRes) {
		return true;
	}
}
